﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="ViewProfile.aspx.cs"
    Inherits="ContractManagementSystem.ViewProfile" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PanelContent" runat="server">
    <div class="divWrap">
        <asp:UpdatePanel runat="server">
            <ContentTemplate>
                <asp:Panel runat="server" ID="ViewPanel">
                    <fieldset class="Panel">
                        <legend>Profile</legend>
                        <table style="width: 60%; margin: 0 auto">
                            <tr>
                                <td style="width: 150px;">
                                    FullName
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="NameTextBox"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    BirthDate
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="BirthDateTextBox"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Gender
                                </td>
                                <td>
                                    <asp:DropDownList runat="server" ID="GenderDropDownList" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Email
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="EmailTextBox"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    PhoneNumber
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="PhoneNumberTextBox"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                    <fieldset class="Panel">
                        <legend>User login</legend>
                        <table style="width: 60%; margin: 0 auto">
                            <tr>
                                <td style="width: 150px;">
                                    Username
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="UserNameLabel" Text="Username"></asp:Label>
                                    <asp:LinkButton runat="server" ID="ChangePassLinkButton" CssClass="linkButton" OnClick="ChangePassLinkButton_OnClick">Change password</asp:LinkButton>
                                </td>
                            </tr>
                            <tr style="margin-top: 5px;">
                                <td>
                                </td>
                                <td>
                                    <asp:Button runat="server" ID="UpdateButton" Text="Update" />
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </asp:Panel>
                <asp:Panel runat="server" ID="ChangePanel">
                    <fieldset class="Panel">
                        <legend>Change password</legend>
                        <table style="width: 60%; margin: 0 auto">
                            <tr>
                                <td>
                                    Old password:
                                </td>
                                <td>
                                    <asp:TextBox ID="OldPasswordTextBox" runat="server"
                                    TextMode="Password"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    New password:
                                </td>
                                <td>
                                    <asp:TextBox ID="NewPasswordTextBox" runat="server"
                                    TextMode="Password"></asp:TextBox>
                                  
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Confirm password:
                                </td>
                                <td>
                                    <asp:TextBox ID="ConfirmPasswordTextBox" runat="server"
                                    TextMode="Password"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label runat="server" ID="MessLabel"></asp:Label>
                                    
                                </td>
                                <td>
                                    <asp:Button runat="server" ID="ChangePassButton" OnClick="ChangePassButton_OnClick"
                                        Text="Update" />
                                </td>
                            </tr>
                            </table>
                    </fieldset>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
